package com.hyy.book2.mapper;

import com.hyy.book2.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
//根据名字从数据库查找信息，没有返回null
@Select("select * from user_info where delete_flag=0 and user_name=#{name}")
UserInfo getUserInfoByName(String name);

}
